import useClipboard from "vue-clipboard3"
const { toClipboard } = useClipboard()

export const copy = async (value: string) => {
	try {
		await toClipboard(value)
		console.log("数据已复制到剪贴板")
	} catch (e) {
		console.error("数据复制失败")
	}
}
